package com.sys.customer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sys.customer.domain.SysUserSpecialty;

import java.util.List;

public interface SysUserSpecialtyService extends IService<SysUserSpecialty> {

    /**
     * 根据用户ID查询用户特长类表
     *
     * @param userId 用户id
     * @return
     */
    List<SysUserSpecialty> findByUserId(String userId);

    /**
     * 保存或清空特长
     *
     * @param userSpecialtyList 入参
     * @param userId            当前用户
     */
    void saveUserSpecialty(List<SysUserSpecialty> userSpecialtyList, String userId);
}
